<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Mosaddek">
    <meta name="keyword" content="FlatLab, Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
    <link rel="shortcut icon" href="img/favicon.html">

    <title><%= basicFacts.name %> -- 首页</title>

    <!-- Bootstrap core CSS -->
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <link href="/css/bootstrap-reset.css" rel="stylesheet">
    <!--external css-->
    <link href="/assets/font-awesome//css/font-awesome.css" rel="stylesheet" />

    <link rel="stylesheet" type="text/css" href="/assets/bootstrap-datepicker//css/datepicker.css" />
    <link rel="stylesheet" type="text/css" href="/assets/bootstrap-colorpicker//css/colorpicker.css" />
    <link rel="stylesheet" type="text/css" href="/assets/bootstrap-daterangepicker/daterangepicker.css" />

    <!-- Custom styles for this template -->
    <link href="/css/style.css" rel="stylesheet">
    <link href="/css/style-responsive.css" rel="stylesheet" />




    <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
    <!--[if lt IE 9]>
    <script src="/js/html5shiv.js"></script>
    <script src="/js/respond.min.js"></script>
    <![endif]-->
    <script src="/js/jquery.js"></script>

</head>

<body>

<section id="container" class="">
    <!--header start-->
    <% include header.html %>
    <!--header end-->
    <!--sidebar start-->
    <% include aside.html %>
    <!--sidebar end-->
    <!--main content start-->
    <section id="main-content">
        <section class="wrapper">
            <section class="panel">
                <header class="panel-heading">管理员设置&nbsp;&nbsp;<a href="#addUser" data-toggle="modal" class="btn btn-xs btn-success">添加管理员</a></header>
                <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="addUser" class="modal fade">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
                                <h4 class="modal-title">添加管理员</h4>
                            </div>
                            <div class="modal-body">

                                <form class="cmxform form-horizontal tasi-form" id="addUserForm" method="get" action="#">
                                    <div class="form-group ">
                                        <label for="cname" class="control-label col-lg-2">用户名</label>
                                        <div class="col-lg-10">
                                            <input class=" form-control" id="cname" name="name" minlength="2" type="text" required />
                                        </div>
                                    </div>
                                    <div class="form-group ">
                                        <label for="cpassword" class="control-label col-lg-2">密码</label>
                                        <div class="col-lg-10">
                                            <input class="form-control " id="cpassword" type="password" name="password" required />
                                        </div>
                                    </div>
                                    <div class="form-group ">
                                        <label for="crpassword" class="control-label col-lg-2">重复密码</label>
                                        <div class="col-lg-10">
                                            <input class="form-control " id="crpassword" type="password" name="rpassword" required />
                                        </div>
                                    </div>
                                    <div class="form-group ">
                                        <label for="cemail" class="control-label col-lg-2">邮箱</label>
                                        <div class="col-lg-10">
                                            <input class="form-control " id="cemail" type="email" name="email" required />
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-lg-offset-2 col-lg-10">
                                            <button class="btn btn-danger" type="submit">Save</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
                <table class="table table-striped table-advance table-hover">
                    <thead>
                    <tr>
                        <th style="width: 40%"><i class="icon-user"></i>&nbsp;用户名</th>
                        <th style="width: 40%"><i class="icon-envelope"></i>&nbsp;邮箱</th>
                        <th><i class="icon-wrench"></i>&nbsp;操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <% for(var i = 0; i < data.length; i++){ %>
                    <tr data-id="<%- data[i].auid %>">
                        <td><%- data[i].user %></td>
                        <td><%- data[i].mail %></td>
                        <td>
                            <button class="btn btn-primary btn-xs"><i class="icon-pencil"></i></button>
                            <button class="btn btn-danger btn-xs"><i class="icon-trash"></i></button>
                        </td>
                    </tr>
                    <% } %>
                    </tbody>
                </table>
            </section>
        </section>
    </section>

    <!--main content end-->
</section>

<script src="/js/jquery.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/jquery.scrollTo.min.js"></script>
<script src="/js/jquery.nicescroll.js" type="text/javascript"></script>

<script src="/js/jquery-ui-1.9.2.custom.min.js"></script>

<!--custom switch-->
<script src="/js/bootstrap-switch.js"></script>
<!--custom tagsinput-->
<script src="/js/jquery.tagsinput.js"></script>
<!--custom checkbox & radio-->
<script type="text/javascript" src="/js/ga.js"></script>

<script type="text/javascript" src="/assets/bootstrap-datepicker//js/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="/assets/bootstrap-daterangepicker/date.js"></script>
<script type="text/javascript" src="/assets/bootstrap-daterangepicker/daterangepicker.js"></script>
<script type="text/javascript" src="/assets/bootstrap-colorpicker//js/bootstrap-colorpicker.js"></script>
<script type="text/javascript" src="/assets/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/js/jquery.validate.min.js"></script>

<script src="/js/form-validation-script.js"></script>

<!--common script for all pages-->
<script src="/js/common-scripts.js"></script>

<!--script for this page-->
<script src="/js/form-component.js"></script>
</body>
</html>
